TouchPoint

fun TouchPoint(id: Int, state: <Error class: unknown class>, positionInScreen: Point, positionInWidget: Point = Point.empty(), force: Float = 0.0f, radiusX: Float = 0.0f, radiusY: Float = 0.0f, rotationAngle: Float = 0.0f): TouchPoint
fun TouchPoint(id: Int, state: <Error class: unknown class>, positionInScreen: Point, positionInWidget: Point = Point.empty(), force: Float = 0.0f, radiusX: Float = 0.0f, radiusY: Float = 0.0f, rotationAngle: Float = 0.0f): TouchPoint

Creates a new instance of TouchPoint with the given parameters.

Since

8.0.0

Parameters

id

The unique identifier of the touch point. All touch events for this touch point must use the same identifier while it is active.

state

The state of the touch point.

positionInScreen

The position of the touch point relative to the screen.

positionInWidget

The position of the touch point relative to the widget.

force

The force applied at the touch point, in the range of 0..1, where 0 indicates no pressure and 1 indicates maximum pressure.

radiusX

The X-axis radius of the touch ellipse.

radiusY

The Y-axis radius of the touch ellipse.

rotationAngle

The touch rotation angle.